$def with (name,sellList,buyList,info)
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link rel="stylesheet" type="text/css" href="/static/style.css" />
<title>虚拟交易市场-订单情况</title>

<div class='content'>
<div class='top'>
<div class='navi'><a href='/orderbook'>交易系统</a></div><div class='navi'>交流区</div><div class='navi'>排行榜</div><div class='navi'><a href='/welcome'>公告区</a></div>  	
</div>
<div class='sidebar'>
	<h3 style='text-align:center'>当前帐号：$name</h3>
	<fieldset>
		<legend style="color:white">我的信息:</legend>
		<div style='text-align:left'>股票数：</div><div style='text-align:right'>$:int(info[1]) </div>
		<div style='text-align:left'>现金数：</div><div style='text-align:right'>$info[0] </div>
		<div style='margin-top:15px'><a href='/mylog'>我的交易情况</a></div>
	
	</fieldset>
	
	<fieldset>
	<legend style="color:white">进行操作:</legend>
		<a href='/orderbook'>查看所有订单</a><br />
		<a href='/neworder'>前往交易大厅</a><br />
		<a href='/price'>历史成交情况</a>
	</fieldset>
	
	<fieldset>
	<legend style="color:white">我的订单:</legend>
	$if info[2]:
		$if info[2][2] == 1:
			<div style='text-align:left'>订单性质：</div><div style='text-align:right'>卖单</div>
		$else:
			<div style='text-align:left'>订单性质：</div><div style='text-align:right'>买单</div>
		<div style='text-align:left'>价格：</div><div style='text-align:right'>$info[2][0]</div>
		<div style='text-align:left'>订单量：</div><div style='text-align:right'>$info[2][1]</div>
		<div style='margin-top:15px;text-align:center'><a href='/abort'>取消我的订单</a></div>
	$else:
		当前无订单
	</fieldset>
	
	<fieldset>
	<legend style="color:white">账户操作:</legend>
		<a href='/login'>更换账户</a><br />
		<a href='mailto:an@naich.org'>联系充值</a>
	</fieldset>
</div>




<div class='frame'>
<h3>订单情况</h3>
<table border=1>
<tr><th>价格</th><th>数量</th><th>时间</th></tr>
	$for order in sellList[::-1]:
		<tr style='background-color:green'>
			<td>$order[-3]</td><td >$:int(order[-2])</td><td>$order[-1]</td>
		</tr>
	<tr height ='5px'></tr>
	$for order in buyList:
		<tr style='background-color:brown'>
			<td>$order[-3]</td><td >$:int(order[-2])</td><td>$order[-1]</td>
		</tr>
</table>
<p style='float:right'>红色表示买单，绿色表示卖单</p>
</div>
</div>
